package com.atguigu.service;

import com.atguigu.base.BaseService;
import com.atguigu.entity.Admin;

import java.util.List;

/**
 * @PACKAGE_NAME: com.atguigu.service
 * @CLASSNAME: AdminService
 * @AUTHOR: zhangsan
 * @DATE: 2024/4/17 9:00
 * @SINCE 17.0.7
 * @DESCRIPTION: AdminService
 */
public interface AdminService extends BaseService<Admin> {
    /**
     * 查询所有管理员
     * @return
     */
    List<Admin> findAll();

    /**
     * 通过用户名查询Admin
     * @param username
     * @return
     */
    Admin getByUsername(String username);

}
